package thread;

public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread main=Thread.currentThread();
        System.out.println("主线程："+main);
        doSome();
    }

    public static void doSome(){
        Thread ds =Thread.currentThread();
        System.out.println("运行doSome方法的线程："+ds);

    }
}
